package com.frank.subject.application.mq.listener;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @author Frank Zou
 * @version v0.0.1
 * @date 2025/7/26
 * @description
 */
@Slf4j
@Component
@RocketMQMessageListener(topic = "first-topic", consumerGroup = "test-group")
public class TestListener implements RocketMQListener<String> {


    @Override
    public void onMessage(String params) {
        log.info("Received message: {}", params);
    }
}
